package com.skywolf.chem.live.mapper;

import com.skywolf.chem.customer.param.SignupDto;
import com.skywolf.chem.live.entity.Live;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.skywolf.chem.live.param.LiveDto;
import com.skywolf.chem.live.param.VideoDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 直播信息表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2020-11-30
 */
@Mapper
public interface LiveMapper extends BaseMapper<Live> {

    List<VideoDto> getLivePageList(@Param("startNum") Long startNum, @Param("endNum") Long endNum, @Param("status") Integer status,
                                   @Param("title")String title,@Param("startTime")String startTime,@Param("endTime")String endTime,@Param("playStatus")Integer playStatus);

    Integer getLivePageCount(@Param("status") Integer status,@Param("title")String title,@Param("startTime")String startTime,@Param("endTime")String endTime,@Param("playStatus")Integer playStatus);

    List<VideoDto> getLiveIngPageList(@Param("startNum") Long startNum, @Param("endNum") Long endNum,  @Param("uid") Long uid);

    Integer getLiveIngPageCount(@Param("uid") Long uid);

    LiveDto getLiveInfo(@Param("liveId") Long liveId,@Param("uid") Long uid);


    List<SignupDto> getLiveSignUpPageList(@Param("startNum") Long startNum, @Param("endNum") Long endNum, @Param("status") Integer status,@Param("title")String title,
                                    @Param("company")String company,@Param("phone")String phone,@Param("userName")String userName, @Param("startTime")String startTime, @Param("endTime")String endTime);

    Integer getLiveSignUpPageCount(@Param("status") Integer status,@Param("title")String title,
                                   @Param("company")String company,@Param("phone")String phone,@Param("userName")String userName, @Param("startTime")String startTime, @Param("endTime")String endTime);

    List<Live> getGroupInfo(@Param("list")List<String> list);

}
